import java.lang.reflect.Array;
import java.util.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-03-23
 * Time: 8:43
 */
public class Test {
    public static void main(String[] args) {
        List<List<Integer>> List = new ArrayList<>();
        List<Integer> List1 = new ArrayList<>();
        List1.add(1);
        List.set(0,List1);
        System.out.println(List);
    }

   /* public static void main5(String[] args) {
        List<List<Integer>> List = new ArrayList<>();
        List<Integer> List1 = new ArrayList<>();

        List1.add(1);
        List.add(List1);

        for (int i = 1; i < 4; i++) {
            List<Integer> List2 = new ArrayList<>();
            List2.add(1);
            for (int j = 1; j < i; j++) {
                List2.add(List.get(i-1).get(j-1) + List.get(i-1).get(j));
            }
            List2.add(1);
            List.add(List2);
        }

        System.out.println(List);

    }*/


 /*   public static void main4(String[] args) {
        ArrayList<Integer> arrayList = new ArrayList<>();
        arrayList.add(11);
        arrayList.add(12);
        arrayList.add(13);
        arrayList.add(14);
        arrayList.add(15);
        ListIterator<Integer> it3 = arrayList.listIterator(arrayList.size());
        while(it3.hasPrevious()) {
            System.out.print(it3.previous() + " ");
        }
        System.out.println();
*/

        /*ListIterator<Integer> it2 = arrayList.listIterator();
        while(it2.hasNext()) {
            System.out.print(it2.next() + " ");
        }
        System.out.println();
*/

        /*Iterator<Integer> it = arrayList.iterator();
        while(it.hasNext()) {
            System.out.print(it.next() + " ");
        }
        System.out.println();*/


        /*for(Integer x : arrayList) {
            System.out.print(x + " ");
        }
*/
        /*for (int i = 0; i < arrayList.size(); i++) {
            System.out.print(arrayList.get(i) + " ");
        }*/
    //}


    /*public static void main(String[] args) {
        ArrayList<Integer> arrayList = new ArrayList<>();
        arrayList.add(11);
        arrayList.add(12);
        arrayList.add(13);
        arrayList.add(14);
        arrayList.add(15);
        System.out.println(arrayList);
        ArrayList<Integer> arrayList1 = (ArrayList<Integer>) arrayList.subList(1,3);
        System.out.println(arrayList1);*/

        /*List<Integer> List = arrayList.subList(1,3);
        System.out.println(List);
        List.set(0,99);
        System.out.println(List);
        System.out.println(arrayList);*/


    /*}*/

   /* public static void main2(String[] args) {
        ArrayList<Integer> arrayList = new ArrayList<>();
        arrayList.add(10);
        arrayList.add(11);
        arrayList.add(12);
        System.out.println(arrayList);
        //arrayList.remove(1);
        //arrayList.remove(10); // error
        arrayList.remove(Integer.valueOf(10));
        System.out.println(arrayList);

    }*/


  /*  public static void main1(String[] args) {
        ArrayList<Integer> arrayList = new ArrayList<>();
        arrayList.add(10);
        arrayList.add(11);
        arrayList.add(12);
        arrayList.add(13);
        //System.out.println(arrayList);

        ArrayList<Integer> arrayList1 = new ArrayList<>();
        arrayList1.addAll(arrayList);
        System.out.println(arrayList1);*/









       /* int[] array = {1,2,3};
        int[] array1 = {5,6,7};
        for(int x : array1) {
            System.out.print(x + " ");
        }
        System.out.println();
        array1 = Arrays.copyOf(array,array.length);
        for(int x : array1) {
            System.out.print(x + " ");
        }*/



        //ArrayList<Integer> arrayList3 = new ArrayList<>(arrayList);
        //ArrayList<Integer> arrayList1 = new ArrayList<>(-10);

        //List<Integer> list = new ArrayList<>();


    //}


}
